package com.cabrida.livestar.model;

import java.io.File;

import android.os.Environment;

import com.cabrida.livestar.BaseApplication;
import com.cabrida.livestar.util.SDCardUtils;

public class Constants {

	/**
	 * 广播/Intent/shared字段
	 */
	public static final String USER = "user";// 用户信息
	public static final String FROM = "from";// 页面来源
	public static final String URL = "url";// h5页面
	public static final String PATH = "path";// 跳转路径
	public static final String PHONE = "phone";
	public static final String TYPE = "type";
	public static final String DATA = "data";
	public static final String SESSION = "session_id";
	public static final String USERID = "user_id";
	public static final String CROP_IMAGE_TYPE = "type";// 图片剪切来源类型

	/**
	 * 缓存文件位置
	 */
	public static final String SDCARD_PATH = SDCardUtils.isSDCardEnable()
			? Environment.getExternalStorageDirectory() + File.separator + "livestar"
			: BaseApplication.getApplication().getFilesDir().getAbsolutePath() + File.separator + "livestar";
	public static final String IMAGE_PATH = SDCARD_PATH + File.separator + "image";
	public static final String APK_PATH = SDCARD_PATH + File.separator + "apk";
}
